export const FlowableExtension = {
  name: 'Flowable',
  prefix: 'flowable',
  uri: 'http://flowable.org/bpmn',
  xml: {
    tagAlias: 'lowerCase',
  },
  types: [
    {
      name: 'Extension',
      superClass: ['Element'],
      properties: [
        {
          name: 'instanceName',
          isAttr: true,
          type: 'String',
        },
        {
          name: 'dataUrl',
          isAttr: true,
          type: 'String',
        },
        {
          name: 'eventUrl',
          isAttr: true,
          type: 'String',
        },
        {
          name: 'eventValue',
          isAttr: true,
          type: 'String',
        },
      ],
    },
    {
      name: 'ExecutionListener',
      superClass: ['Element'],
      properties: [
        {
          name: 'event',
          isAttr: true,
          type: 'String',
        },
        {
          name: 'class',
          isAttr: true,
          type: 'String',
        },
        {
          name: 'fields',
          isAttr: false,
          type: 'Field',
          isMany: true,
        },
      ],
    },
    {
      name: 'Field',
      superClass: ['Element'],
      properties: [
        {
          name: 'name',
          isAttr: true,
          type: 'String',
        },
        {
          name: 'expression',
          isAttr: true,
          type: 'String',
        },
      ],
    },
  ],
};
